package iostream;

import java.util.Scanner;

public class Calculator {
	public static void main(String[] args) {
		Scanner myScanner = new Scanner(System.in);

		double a = 0;
		double b = 0;
		String str = "";
		System.out.println("Vvedite A:");
		a = myScanner.nextDouble();
		System.out.println("Vvedite Operator:");
		str = myScanner.next();
		System.out.println("Vvedite B:");
		b = myScanner.nextDouble();
		
		if(str.charAt(0)=='+')
			System.out.println("Otvet: "+(a+b));
		if(str.charAt(0)=='-')
			System.out.println("Otvet: "+(a-b));
		if(str.charAt(0)=='*')
			System.out.println("Otvet: "+(a*b));
		if(str.charAt(0)=='/')
			if(b==0)
				System.out.println("Delenie na 0");
			else
				System.out.println("Otvet: "+(a/b));
	}

}
